﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gds.Utility.Const
{
    public static class GbUnit
    {
        #region XML Path
        public static readonly string LogPath = Directory.GetCurrentDirectory() + "\\Log\\";
        public static readonly string ControllerLogPath = Directory.GetCurrentDirectory() + "\\ControllerLog\\";
        public static readonly string SystemPath = Directory.GetCurrentDirectory() + "\\Config\\";
        public static readonly string ErrorPath = Directory.GetCurrentDirectory() + "\\ErrorLog\\";
        public static readonly string PositionPath = Directory.GetCurrentDirectory() + "\\Position\\";
        public static readonly string RegeditFile = Directory.GetCurrentDirectory() + "\\RegeditFile\\regeditFile.xml";
        public static readonly string systemFile = Directory.GetCurrentDirectory() + "\\LocalConfig\\systemconfig.xml";
        public static readonly string UserInfoFile = Directory.GetCurrentDirectory() + "\\Config\\userInfoConfig.xml";
        public static readonly string RelayConfigPath = Directory.GetCurrentDirectory() + "\\RelayConfig\\";

        #endregion
        #region Database
        public static bool DatabaseLinkSuccessFlag = false;
        public static bool BackupDatabaseLinkSuccessFlag = false;
        public static bool reloadRealTimeModelFlag = false;
        public static bool IsContainBackUpServer = false;
        public static string GasAlarmTableName = "GasMeterAlarmData";
        #endregion
        /// <summary>
        /// 控制器状态字典
        /// </summary>
        public static Dictionary<int, bool> ControllerStateDic;
        public static bool CommunicationStopFlag = false;
        public static bool StarRefreshDataFlag = false;
        public static bool FinishRefreshDataFlag = false;
        public static bool FinishSetRelayFlag = false;
        public static bool IsStopVoice = false;
        public static bool IsVoiceFinish = false;


        /// <summary>
        /// 控制器消音标志字典
        /// </summary>
        public static Dictionary<int, bool> Controller_NoVoiceFlagDic;
        /// <summary>
        /// 控制器复位标志字典
        /// </summary>
        public static Dictionary<int, bool> Controller_ResetDic;

        public static bool IsAlreadyResetFlag;
        public static bool IsAlreadyNoVoiceFlag;

        #region 日志相关
        public static bool IsShowCommunicationLog = false;
        public static int ShowLogControllerAddressIndex = 0;
        public static int ShowLogControllerTotalLine = 0;
        #endregion
        /// <summary>
        /// 是否手动计算探头的状态
        /// </summary>
        public static bool IsCalcStateByMannual = false;


        /// <summary>
        /// 氧气是否默认合格
        /// </summary>
        public static bool IsO2defaultOK = false;


    }
}
